﻿package cn.poco.pepsi.service;

import java.util.List;

import android.content.Context;
import cn.poco.pepsi.bean.City;


/**
 * @author jack
 */
public interface ICity {

	final static String TAG = "CityImpl";
	final static String CITY_URL = "http://img-m.poco.cn/mypoco/mtmpfile/food_iphone/city.php";
	final static String CITY_GPS_URL = "http://img-m.poco.cn/mypoco/mtmpfile/food_iphone/getCityByGPS.php?lat=#a&long=#b";

	/**
	 * 获取城市信息
	 * 
	 * @throws Exception
	 **/
	public List<City> switchCity(Context context) throws Exception;

	/** 根据gps(经纬度)信息得到所在城市 **/
	public City switchCitybyGps(double lat, double lon) throws Exception;
}
